<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>float 属性</title>
    <style>
       .div1{
           width: 100px;
           height: 100px;
           background-color: #cc6600;
           float: left;

       }
        .div2{
           width: 100px;
           height: 200px;
           background-color:cyan;
            float: left;
            clear: both;
       }
        .div3{
           width: 200px;
           height: 100px;
           background-color: chartreuse;
            float: left;
       }
        .div4{
           width: 200px;
           height: 200px;
           background-color: darkcyan;
            float: left;
       }
    </style>
</head>
<body>
<div class="div1"></div>
<div class="div2"></div>
<div class="div3"></div>
<div class="div4"></div>
</body>
</html>